package SQL.abysnSQL;

/*
 * coldef ::= colname:cn datatype:dt isnull:n defaultvalue:dv inc:i
 {:RESULT = new ColDef(cn,dt,b,dv,i);:};
 */

public class ColDef {

	public ColName colName;
	public DataType dataType;
	public boolean isNull;
	public Value defaultValue;
	public boolean isInc;
	public BoolCondition check;
	public ForKeyDef f;

	/*
	 * contained foreign key~
	 */
	public ColDef(ColName cn, DataType dt, boolean isNull, Value dv,
			boolean inc, ForKeyDef f,BoolCondition w) {
		colName = cn;
		dataType = dt;
		this.isNull = isNull;
		defaultValue = dv;
		isInc = inc;
		this.f = f;
	}
}
